<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png">
    <hello-global a = "1" b="2" @subEvent = "fn"></hello-global>
    <hello-private></hello-private>
  </div>
</template>

<script>
import HelloPrivate from '@/components/HelloPrivate'
export default {
  name: 'App',
  components: {
    HelloPrivate
  },
  methods: {
    fn (str) {
      alert(str)
    }
  }
}
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
